# 定义：python中所有的类的类型都是type
# type就是元类：创建类的类叫做元类

class MyTest:
    pass

MyTest2=type("MyTest2",(object,),{"name":"zhangsan"})  #(类名，参数，属性)
print(type(MyTest))
print(type(MyTest2))
a=MyTest2()
print(a.name)

MyTest3=type("MyTest3",(object,),{"name":a})


b=MyTest3(3)
print(b.name)